home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / VBASIC / AGAVB25.ZIP / VB.ZIP / GTICS.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-01-17  |  21.6 KB  |  663 lines

  1. VERSION 2.00
  2. Begin Form TicDemo 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Tics"
  6.    ClientHeight    =   5220
  7.    ClientLeft      =   1845
  8.    ClientTop       =   2370
  9.    ClientWidth     =   9015
  10.    Height          =   5625
  11.    Left            =   1785
  12.    LinkTopic       =   "Form2"
  13.    MaxButton       =   0   'False
  14.    MDIChild        =   -1  'True
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   5220
  17.    ScaleWidth      =   9015
  18.    Top             =   2025
  19.    Width           =   9135
  20.    Begin Frame Frame6 
  21.       BackColor       =   &H00C0C0C0&
  22.       Caption         =   "Tic Label Properties"
  23.       Height          =   1020
  24.       Left            =   4545
  25.       TabIndex        =   4
  26.       Top             =   3975
  27.       Width           =   4245
  28.       Begin CheckBox Check1 
  29.          BackColor       =   &H00C0C0C0&
  30.          Caption         =   "TicLabel"
  31.          FontBold        =   0   'False
  32.          FontItalic      =   0   'False
  33.          FontName        =   "Arial"
  34.          FontSize        =   8.25
  35.          FontStrikethru  =   0   'False
  36.          FontUnderline   =   0   'False
  37.          Height          =   210
  38.          Left            =   150
  39.          TabIndex        =   7
  40.          Top             =   330
  41.          Value           =   1  'Checked
  42.          Width           =   1095
  43.       End
  44.       Begin HScrollBar HScroll1 
  45.          Height          =   240
  46.          Index           =   6
  47.          Left            =   1530
  48.          Max             =   140
  49.          TabIndex        =   8
  50.          Top             =   600
  51.          Width           =   2000
  52.       End
  53.       Begin CheckBox Check2 
  54.          BackColor       =   &H00C0C0C0&
  55.          Caption         =   "TicLabelRotated"
  56.          FontBold        =   0   'False
  57.          FontItalic      =   0   'False
  58.          FontName        =   "Arial"
  59.          FontSize        =   8.25
  60.          FontStrikethru  =   0   'False
  61.          FontUnderline   =   0   'False
  62.          Height          =   210
  63.          Left            =   1260
  64.          TabIndex        =   10
  65.          Top             =   330
  66.          Width           =   2025
  67.       End
  68.       Begin Label Label2 
  69.          AutoSize        =   -1  'True
  70.          BackStyle       =   0  'Transparent
  71.          Caption         =   " 0"
  72.          Height          =   195
  73.          Index           =   6
  74.          Left            =   3600
  75.          TabIndex        =   11
  76.          Top             =   615
  77.          Width           =   180
  78.       End
  79.       Begin Label Label1 
  80.          AutoSize        =   -1  'True
  81.          BackStyle       =   0  'Transparent
  82.          Caption         =   "TicLabelRadius:"
  83.          FontBold        =   0   'False
  84.          FontItalic      =   0   'False
  85.          FontName        =   "Arial"
  86.          FontSize        =   8.25
  87.          FontStrikethru  =   0   'False
  88.          FontUnderline   =   0   'False
  89.          Height          =   210
  90.          Index           =   6
  91.          Left            =   270
  92.          TabIndex        =   20
  93.          Top             =   615
  94.          Width           =   1140
  95.       End
  96.    End
  97.    Begin Frame Frame5 
  98.       BackColor       =   &H00C0C0C0&
  99.       Caption         =   "Tic Size Properties"
  100.       Height          =   1170
  101.       Left            =   4545
  102.       TabIndex        =   36
  103.       Top             =   2745
  104.       Width           =   4245
  105.       Begin HScrollBar HScroll1 
  106.          Height          =   240
  107.          Index           =   5
  108.          Left            =   1500
  109.          Max             =   20
  110.          TabIndex        =   19
  111.          Top             =   795
  112.          Width           =   2000
  113.       End
  114.       Begin HScrollBar HScroll1 
  115.          Height          =   240
  116.          Index           =   3
  117.          Left            =   1500
  118.          Max             =   140
  119.          TabIndex        =   21
  120.          Top             =   315
  121.          Width           =   2000
  122.       End
  123.       Begin HScrollBar HScroll1 
  124.          Height          =   240
  125.          Index           =   4
  126.          Left            =   1500
  127.          Max             =   140
  128.          TabIndex        =   22
  129.          Top             =   555
  130.          Width           =   2000
  131.       End
  132.       Begin Label Label1 
  133.          Alignment       =   1  'Right Justify
  134.          AutoSize        =   -1  'True
  135.          BackStyle       =   0  'Transparent
  136.          Caption         =   "TicWidth:"
  137.          FontBold        =   0   'False
  138.          FontItalic      =   0   'False
  139.          FontName        =   "Arial"
  140.          FontSize        =   8.25
  141.          FontStrikethru  =   0   'False
  142.          FontUnderline   =   0   'False
  143.          Height          =   210
  144.          Index           =   5
  145.          Left            =   765
  146.          TabIndex        =   27
  147.          Top             =   810
  148.          Width           =   660
  149.       End
  150.       Begin Label Label2 
  151.          AutoSize        =   -1  'True
  152.          BackStyle       =   0  'Transparent
  153.          Caption         =   " 0"
  154.          Height          =   195
  155.          Index           =   5
  156.          Left            =   3570
  157.          TabIndex        =   32
  158.          Top             =   810
  159.          Width           =   180
  160.       End
  161.       Begin Label Label2 
  162.          AutoSize        =   -1  'True
  163.          BackStyle       =   0  'Transparent
  164.          Caption         =   " 0"
  165.          Height          =   195
  166.          Index           =   3
  167.          Left            =   3570
  168.          TabIndex        =   23
  169.          Top             =   300
  170.          Width           =   180
  171.       End
  172.       Begin Label Label1 
  173.          Alignment       =   1  'Right Justify
  174.          AutoSize        =   -1  'True
  175.          BackStyle       =   0  'Transparent
  176.          Caption         =   "TicInnerRadius:"
  177.          FontBold        =   0   'False
  178.          FontItalic      =   0   'False
  179.          FontName        =   "Arial"
  180.          FontSize        =   8.25
  181.          FontStrikethru  =   0   'False
  182.          FontUnderline   =   0   'False
  183.          Height          =   210
  184.          Index           =   3
  185.          Left            =   315
  186.          TabIndex        =   24
  187.          Top             =   345
  188.          Width           =   1110
  189.       End
  190.       Begin Label Label2 
  191.          AutoSize        =   -1  'True
  192.          BackStyle       =   0  'Transparent
  193.          Caption         =   " 0"
  194.          Height          =   195
  195.          Index           =   4
  196.          Left            =   3570
  197.          TabIndex        =   25
  198.          Top             =   540
  199.          Width           =   180
  200.       End
  201.       Begin Label Label1 
  202.          Alignment       =   1  'Right Justify
  203.          AutoSize        =   -1  'True
  204.          BackStyle       =   0  'Transparent
  205.          Caption         =   "TicOuterRadius:"
  206.          FontBold        =   0   'False
  207.          FontItalic      =   0   'False
  208.          FontName        =   "Arial"
  209.          FontSize        =   8.25
  210.          FontStrikethru  =   0   'False
  211.          FontUnderline   =   0   'False
  212.          Height          =   210
  213.          Index           =   4
  214.          Left            =   300
  215.          TabIndex        =   26
  216.          Top             =   570
  217.          Width           =   1155
  218.       End
  219.    End
  220.    Begin Frame Frame4 
  221.       BackColor       =   &H00C0C0C0&
  222.       Caption         =   "Tic Value Properties"
  223.       Height          =   1200
  224.       Left            =   4545
  225.       TabIndex        =   35
  226.       Top             =   1515
  227.       Width           =   4245
  228.       Begin HScrollBar HScroll1 
  229.          Height          =   240
  230.          Index           =   0
  231.          Left            =   1470
  232.          Max             =   100
  233.          TabIndex        =   39
  234.          Top             =   300
  235.          Width           =   2000
  236.       End
  237.       Begin HScrollBar HScroll1 
  238.          Height          =   240
  239.          Index           =   1
  240.          Left            =   1470
  241.          Max             =   100
  242.          TabIndex        =   38
  243.          Top             =   540
  244.          Width           =   2000
  245.       End
  246.       Begin HScrollBar HScroll1 
  247.          Height          =   240
  248.          Index           =   2
  249.          Left            =   1470
  250.          Max             =   100
  251.          TabIndex        =   37
  252.          Top             =   780
  253.          Width           =   2000
  254.       End
  255.       Begin Label Label2 
  256.          AutoSize        =   -1  'True
  257.          BackStyle       =   0  'Transparent
  258.          Caption         =   " 0"
  259.          Height          =   195
  260.          Index           =   0
  261.          Left            =   3555
  262.          TabIndex        =   33
  263.          Top             =   315
  264.          Width           =   180
  265.       End
  266.       Begin Label Label1 
  267.          Alignment       =   1  'Right Justify
  268.          AutoSize        =   -1  'True
  269.          BackStyle       =   0  'Transparent
  270.          Caption         =   "TicStartValue:"
  271.          FontBold        =   0   'False
  272.          FontItalic      =   0   'False
  273.          FontName        =   "Arial"
  274.          FontSize        =   8.25
  275.          FontStrikethru  =   0   'False
  276.          FontUnderline   =   0   'False
  277.          Height          =   210
  278.          Index           =   0
  279.          Left            =   405
  280.          TabIndex        =   44
  281.          Top             =   315
  282.          Width           =   1020
  283.       End
  284.       Begin Label Label1 
  285.          Alignment       =   1  'Right Justify
  286.          AutoSize        =   -1  'True
  287.          BackStyle       =   0  'Transparent
  288.          Caption         =   "TicStopValue:"
  289.          FontBold        =   0   'False
  290.          FontItalic      =   0   'False
  291.          FontName        =   "Arial"
  292.          FontSize        =   8.25
  293.          FontStrikethru  =   0   'False
  294.          FontUnderline   =   0   'False
  295.          Height          =   210
  296.          Index           =   1
  297.          Left            =   405
  298.          TabIndex        =   43
  299.          Top             =   555
  300.          Width           =   1005
  301.       End
  302.       Begin Label Label2 
  303.          AutoSize        =   -1  'True
  304.          BackStyle       =   0  'Transparent
  305.          Caption         =   " 0"
  306.          Height          =   195
  307.          Index           =   1
  308.          Left            =   3555
  309.          TabIndex        =   42
  310.          Top             =   570
  311.          Width           =   180
  312.       End
  313.       Begin Label Label2 
  314.          AutoSize        =   -1  'True
  315.          BackStyle       =   0  'Transparent
  316.          Caption         =   " 0"
  317.          Height          =   195
  318.          Index           =   2
  319.          Left            =   3555
  320.          TabIndex        =   41
  321.          Top             =   825
  322.          Width           =   180
  323.       End
  324.       Begin Label Label1 
  325.          Alignment       =   1  'Right Justify
  326.          AutoSize        =   -1  'True
  327.          BackStyle       =   0  'Transparent
  328.          Caption         =   "TicDeltaValue:"
  329.          FontBold        =   0   'False
  330.          FontItalic      =   0   'False
  331.          FontName        =   "Arial"
  332.          FontSize        =   8.25
  333.          FontStrikethru  =   0   'False
  334.          FontUnderline   =   0   'False
  335.          Height          =   210
  336.          Index           =   2
  337.          Left            =   360
  338.          TabIndex        =   40
  339.          Top             =   795
  340.          Width           =   1035
  341.       End
  342.    End
  343.    Begin AGAUGE Gauge1 
  344.       Angle           =   0
  345.       AutoRedraw      =   -1  'True
  346.       AVersion        =   2.5
  347.       BackgroundColor =   &H00C0C0C0&
  348.       BevelInner      =   2  ' 2 - Inset
  349.       BevelOuter      =   1  ' 1 - Raised
  350.       BevelWidth      =   4
  351.       BorderType      =   1  ' 1 - Bevel
  352.       BorderWidth     =   2
  353.       FontID          =   1
  354.       FrameColor      =   &H00000000&
  355.       FrameScaleX     =   0
  356.       FrameScaleY     =   0
  357.       FrameStyle      =   0  ' 0 - None
  358.       Height          =   4935
  359.       Left            =   90
  360.       MouseControl    =   -1  'True
  361.       OutlineAlign    =   0  ' 0 - Left 
  362.       OutlineColor    =   &H00000000&
  363.       OutlineTitle    =   ""
  364.       OutlineWidth    =   0
  365.       Radius          =   0
  366.       Shape           =   ""
  367.       TabIndex        =   34
  368.       Top             =   60
  369.       Value           =   0
  370.       Width           =   4230
  371.       XScale          =   0
  372.       YScale          =   0
  373.       ZLoad           =   GTICS.FRX:0000
  374.    End
  375.    Begin Frame Frame3 
  376.       BackColor       =   &H00C0C0C0&
  377.       Caption         =   "TicColor"
  378.       Height          =   1395
  379.       Left            =   7620
  380.       TabIndex        =   3
  381.       Top             =   60
  382.       Width           =   1200
  383.       Begin Label Colors 
  384.          BackColor       =   &H00000000&
  385.          Height          =   225
  386.          Index           =   0
  387.          Left            =   240
  388.          TabIndex        =   5
  389.          Top             =   450
  390.          Width           =   225
  391.       End
  392.       Begin Label Colors 
  393.          BackColor       =   &H00808080&
  394.          Height          =   225
  395.          Index           =   1
  396.          Left            =   720
  397.          TabIndex        =   6
  398.          Top             =   690
  399.          Width           =   225
  400.       End
  401.       Begin Label Colors 
  402.          BackColor       =   &H00FFFFFF&
  403.          Height          =   225
  404.          Index           =   2
  405.          Left            =   480
  406.          TabIndex        =   12
  407.          Top             =   450
  408.          Width           =   225
  409.       End
  410.       Begin Label Colors 
  411.          BackColor       =   &H000000FF&
  412.          Height          =   225
  413.          Index           =   3
  414.          Left            =   240
  415.          TabIndex        =   13
  416.          Top             =   930
  417.          Width           =   225
  418.       End
  419.       Begin Label Colors 
  420.          BackColor       =   &H0000FF00&
  421.          Height          =   225
  422.          Index           =   4
  423.          Left            =   720
  424.          TabIndex        =   14
  425.          Top             =   450
  426.          Width           =   225
  427.       End
  428.       Begin Label Colors 
  429.          BackColor       =   &H0000FFFF&
  430.          Height          =   225
  431.          Index           =   5
  432.          Left            =   480
  433.          TabIndex        =   15
  434.          Top             =   930
  435.          Width           =   225
  436.       End
  437.       Begin Label Colors 
  438.          BackColor       =   &H00FF0000&
  439.          Height          =   225
  440.          Index           =   6
  441.          Left            =   240
  442.          TabIndex        =   16
  443.          Top             =   690
  444.          Width           =   225
  445.       End
  446.       Begin Label Colors 
  447.          BackColor       =   &H00FF00FF&
  448.          Height          =   225
  449.          Index           =   7
  450.          Left            =   720
  451.          TabIndex        =   17
  452.          Top             =   930
  453.          Width           =   225
  454.       End
  455.       Begin Label Colors 
  456.          BackColor       =   &H000080FF&
  457.          Height          =   225
  458.          Index           =   8
  459.          Left            =   480
  460.          TabIndex        =   18
  461.          Top             =   690
  462.          Width           =   225
  463.       End
  464.    End
  465.    Begin Frame Frame2 
  466.       BackColor       =   &H00C0C0C0&
  467.       Caption         =   "Tic Style Property"
  468.       Height          =   1395
  469.       Left            =   5640
  470.       TabIndex        =   28
  471.       Top             =   60
  472.       Width           =   1935
  473.       Begin OptionButton Option2 
  474.          BackColor       =   &H00C0C0C0&
  475.          Caption         =   "Circle"
  476.          FontBold        =   0   'False
  477.          FontItalic      =   0   'False
  478.          FontName        =   "MS Sans Serif"
  479.          FontSize        =   8.25
  480.          FontStrikethru  =   0   'False
  481.          FontUnderline   =   0   'False
  482.          Height          =   225
  483.          Index           =   3
  484.          Left            =   240
  485.          TabIndex        =   9
  486.          Top             =   975
  487.          Width           =   1245
  488.       End
  489.       Begin OptionButton Option2 
  490.          BackColor       =   &H00C0C0C0&
  491.          Caption         =   "Diamond"
  492.          FontBold        =   0   'False
  493.          FontItalic      =   0   'False
  494.          FontName        =   "MS Sans Serif"
  495.          FontSize        =   8.25
  496.          FontStrikethru  =   0   'False
  497.          FontUnderline   =   0   'False
  498.          Height          =   225
  499.          Index           =   2
  500.          Left            =   240
  501.          TabIndex        =   31
  502.          Top             =   750
  503.          Width           =   1245
  504.       End
  505.       Begin OptionButton Option2 
  506.          BackColor       =   &H00C0C0C0&
  507.          Caption         =   "Triangle"
  508.          FontBold        =   0   'False
  509.          FontItalic      =   0   'False
  510.          FontName        =   "MS Sans Serif"
  511.          FontSize        =   8.25
  512.          FontStrikethru  =   0   'False
  513.          FontUnderline   =   0   'False
  514.          Height          =   225
  515.          Index           =   1
  516.          Left            =   240
  517.          TabIndex        =   30
  518.          Top             =   525
  519.          Width           =   1245
  520.       End
  521.       Begin OptionButton Option2 
  522.          BackColor       =   &H00C0C0C0&
  523.          Caption         =   "Rectangle"
  524.          FontBold        =   0   'False
  525.          FontItalic      =   0   'False
  526.          FontName        =   "MS Sans Serif"
  527.          FontSize        =   8.25
  528.          FontStrikethru  =   0   'False
  529.          FontUnderline   =   0   'False
  530.          Height          =   225
  531.          Index           =   0
  532.          Left            =   240
  533.          TabIndex        =   29
  534.          Top             =   300
  535.          Value           =   -1  'True
  536.          Width           =   1245
  537.       End
  538.    End
  539.    Begin Frame Frame1 
  540.       BackColor       =   &H00C0C0C0&
  541.       Caption         =   "Tic ID"
  542.       Height          =   1395
  543.       Left            =   4560
  544.       TabIndex        =   0
  545.       Top             =   60
  546.       Width           =   1035
  547.       Begin OptionButton Option1 
  548.          BackColor       =   &H00C0C0C0&
  549.          Caption         =   "1"
  550.          Height          =   255
  551.          Index           =   1
  552.          Left            =   240
  553.          TabIndex        =   2
  554.          Top             =   720
  555.          Width           =   615
  556.       End
  557.       Begin OptionButton Option1 
  558.          BackColor       =   &H00C0C0C0&
  559.          Caption         =   "0"
  560.          Height          =   255
  561.          Index           =   0
  562.          Left            =   240
  563.          TabIndex        =   1
  564.          Top             =   480
  565.          Value           =   -1  'True
  566.          Width           =   615
  567.       End
  568.    End
  569. Sub Check1_Click ()
  570.     gauge1.TicLabel = check1
  571. End Sub
  572. Sub Check2_Click ()
  573.     gauge1.TicLabelRotated = check2
  574. End Sub
  575. Sub Check3_Click ()
  576.     gauge1.TicFloat = check3
  577. End Sub
  578. Sub Colors_Click (index As Integer)
  579.     gauge1.TicColor = colors(index).BackColor
  580. End Sub
  581. Sub Form_Load ()
  582.     hscroll1(0) = gauge1.TicStartValue
  583.     hscroll1(1) = gauge1.TicStopValue
  584.     hscroll1(2) = gauge1.TicDeltaValue
  585.     hscroll1(3) = gauge1.TicInnerRadius * 100
  586.     hscroll1(4) = gauge1.TicOuterRadius * 100
  587.     hscroll1(5) = gauge1.TicWidth * 100
  588.     hscroll1(6) = gauge1.TicLabelRadius * 100
  589. End Sub
  590. Sub HScroll1_Change (index As Integer)
  591.     Select Case index
  592.         Case 0
  593.             gauge1.TicStartValue = hscroll1(0)
  594.             label2(0) = hscroll1(0)
  595.         Case 1
  596.             gauge1.TicStopValue = hscroll1(1)
  597.             label2(1) = hscroll1(1)
  598.         Case 2
  599.             gauge1.TicDeltaValue = hscroll1(2)
  600.             label2(2) = hscroll1(2)
  601.         Case 3
  602.             gauge1.TicInnerRadius = hscroll1(3) / 100
  603.             label2(3) = hscroll1(3) / 100
  604.         Case 4
  605.             gauge1.TicOuterRadius = hscroll1(4) / 100
  606.             label2(4) = hscroll1(4) / 100
  607.         Case 5
  608.             gauge1.TicWidth = hscroll1(5) / 100
  609.             label2(5) = hscroll1(5) / 100
  610.         Case 6
  611.             gauge1.TicLabelRadius = hscroll1(6) / 100
  612.             label2(6) = hscroll1(6) / 100
  613.         Case 7
  614.             gauge1.TicFloatOffset = hscroll1(7)
  615.             label2(7) = hscroll1(7)
  616.     End Select
  617. End Sub
  618. Sub HScroll1_Scroll (index As Integer)
  619.     Select Case index
  620.         Case 0
  621.             gauge1.TicStartValue = hscroll1(0)
  622.             label2(0) = hscroll1(0)
  623.         Case 1
  624.             gauge1.TicStopValue = hscroll1(1)
  625.             label2(1) = hscroll1(1)
  626.         Case 2
  627.             gauge1.TicDeltaValue = hscroll1(2)
  628.             label2(2) = hscroll1(2)
  629.         Case 3
  630.             gauge1.TicInnerRadius = hscroll1(3) / 100
  631.             label2(3) = hscroll1(3) / 100
  632.         Case 4
  633.             gauge1.TicOuterRadius = hscroll1(4) / 100
  634.             label2(4) = hscroll1(4) / 100
  635.         Case 5
  636.             gauge1.TicWidth = hscroll1(5) / 100
  637.             label2(5) = hscroll1(5) / 100
  638.         Case 6
  639.             gauge1.TicLabelRadius = hscroll1(6) / 100
  640.             label2(6) = hscroll1(6) / 100
  641.         Case 7
  642.             gauge1.TicFloatOffset = hscroll1(7)
  643.             label2(7) = hscroll1(7)
  644.     End Select
  645. End Sub
  646. Sub Option1_Click (index As Integer)
  647.     gauge1.TicID = index
  648.     hscroll1(0) = gauge1.TicStartValue
  649.     hscroll1(1) = gauge1.TicStopValue
  650.     hscroll1(2) = gauge1.TicDeltaValue
  651.     hscroll1(3) = gauge1.TicInnerRadius * 100
  652.     hscroll1(4) = gauge1.TicOuterRadius * 100
  653.     hscroll1(5) = gauge1.TicWidth * 100
  654.     hscroll1(6) = gauge1.TicLabelRadius * 100
  655.     option2(gauge1.TicStyle) = True
  656.     check1 = -gauge1.TicLabel
  657.     check2 = -gauge1.TicLabelRotated
  658.     check3 = -gauge1.TicFloat
  659. End Sub
  660. Sub Option2_Click (index As Integer)
  661.     gauge1.TicStyle = index
  662. End Sub
  663.